package hsh.second;
import java.util.Scanner;
public class arraySort {


    public static void main(String[] args){
        int [] yuan = {12,14,23,45,66,68,70,77,90};
        int [] xin = new int [11];
        Scanner sc = new Scanner(System.in);
            System.out.print("请输入一个整数数字：");
        int st = sc.nextInt();
        int index = 0;
        for(int i = 0;i<yuan.length;i++){
            if(st>=yuan[i]){
              xin[i+1] = yuan[i];
            }
            else{
                xin[i] = yuan[i];
                index = i+1;
            }
            xin[index] = st;
        }
        System.out.print("新的数组是：");
        for(int j = 0 ;j < xin.length;j++){
            System.out.println(xin[j]+"");
        }


    }

}
